package com.qyhl.module_practice.search;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeSearchBean;

public class PracticeSearchPresenter implements PracticeSearchContract.PracticeSearchPresenter {
    private PracticeSearchModel mModel;
    private PracticeSearchActivity mView;

    PracticeSearchPresenter(PracticeSearchActivity mView) {
        this.mView = mView;
        this.mModel = new PracticeSearchModel(this);
    }

    @Override
    public void doSearch(String key) {
        mModel.doSearch(key);
    }

    @Override
    public void setResult(PracticeSearchBean bean) {
        mView.setResult(bean);
    }

    @Override
    public void searchError(String msg) {
        mView.searchError(msg);
    }
}
